package com.runfast.paotui.service;

import com.runfast.common.service.IService;
import com.runfast.paotui.dao.model.RunfastShopper;
import com.runfast.paotui.dao.model.RunfastShopperExample;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface RunfastShopperService extends IService<RunfastShopper, Integer, RunfastShopperExample> {
    void deteleshopper(Integer id);
    List<Map<String,Object>> findbyGoods();

    RunfastShopper findByUserName(String userName);
    RunfastShopper findByidnumber(String idNumber);

    void update(RunfastShopper shopper);

    List<RunfastShopper> findByAll();

    RunfastShopper findByNumeber(String munber);

    void updateNumber(RunfastShopper shopper);

    RunfastShopper get(Integer id);

    List<Map<String,Object>> countShopperIncome(String key, Date startTime, Date endTime, Integer page, Integer pageSize, Integer tAccounts);

    Integer getShopperCount();

    //  PageBean<RunfastShopper> getPageBean(int pageSize, int page, RunfastShopper t, List<Integer> agentids);

    List<RunfastShopper> findByCreditLevelid(Integer creditLevelid);

    void updatepassword(RunfastShopper shopper);

    void updateAlias(RunfastShopper shopper);
    void  updateUserName(RunfastShopper shopper);
    List<RunfastShopper> findBuagentid(Integer agentid, Integer teamid);

    List<RunfastShopper> findagentidAndWordtypeAndWorkingAndName(Integer agentid,Integer worktype,Integer working, String name,Integer page,Integer pagesize, Integer status,String equipment,Integer type);
    Integer findagentidAndWordtypeAndWorkingAndNamecount(Integer agentid,Integer worktype,Integer working, String name,Integer page,Integer pagesize, Integer status,String equipment);

    List<RunfastShopper> findNameAndAgerenAndTime(Integer agentid,String name,Date createtime1,Date createtime2);

    Integer findagentidAndWordtypeAndWorkingAndNamecount1(Integer agentid, Integer worktype, Integer working, String name1, Integer page1, Integer pagesize, Integer status, String equipment);
    Integer findagentidAndWordtypeAndWorkingAndNamecount2(Integer agentid, Integer worktype, Integer working, String name1, Integer page1, Integer pagesize, Integer status, String equipment);
    Integer findagentidAndWordtypeAndWorkingAndNamecount3(Integer agentid, Integer worktype, Integer working, String name1, Integer page1, Integer pagesize, Integer status, String equipment);
    Integer findagentidAndWordtypeAndWorkingAndNamecount4(Integer agentid, Integer worktype, Integer working, String name1, Integer page1, Integer pagesize, Integer status, String equipment);

}